package com.tt.lcd.qunyangGPRS.chanfangActivity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.tt.lcd.qunyangGPRS.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import android.widget.Toast;

public class CF_siweiqi_info extends Activity {
	private String date;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.chanfang_zhaninfo);
		ListView listView = (ListView) this.findViewById(R.id.siweizhan_list);

		Intent it = getIntent();

		this.date = it.getExtras().getString("date");

		Toast.makeText(this, date, 2).show();

		List<HashMap<String, Object>> data = new ArrayList<HashMap<String,Object>>();
		//获取到集合数据
		HashMap<String, Object> data1 = new HashMap<String, Object>();
		data1.put("zhanId", "1-2");
		data1.put("jihualiang", "8000");
		data1.put("caisiliang", "2000");
		data.add(data1);

		SimpleAdapter adapter = new SimpleAdapter(this, data, R.layout.chanfang_zhanlist,
				new String[]{"zhanId", "jihualiang","caisiliang"}, new int[]{R.id.zhanID, R.id.jihualiang,R.id.yicaisi});
		//实现列表的显示
		listView.setAdapter(adapter);
	}

}
